-
Notifications
You must be signed in to change notification settings - Fork 703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UniformGridLayout (FlowLayout): Fix issue with scrolling up creating gaps in layout #3393
UniformGridLayout (FlowLayout): Fix issue with scrolling up creating gaps in layout #3393
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
|
||
<!-- The DataTemplate used: CircularTemplate--> | ||
|
||
<DataTemplate x:Key="CircularTemplate" x:DataType="x:String"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this circular ?
{ | ||
this.InitializeComponent(); | ||
for (int i = 0; i < 40; ++i) | ||
collection.Add(i.ToString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be simplified by just setting it in line 17.. using Enumerable.Range(0, 40)
IsVerticalScrollChainingEnabled="False" | ||
AutomationProperties.Name="RepeaterScrollViewer" | ||
MaxHeight="500"> | ||
<controls:ItemsRepeater x:Name="UniformGridRepeater" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious if this would be easier to see if you set vertical cache to 0
@ranjeshj Would you like me to address your comments or rather merge as is? |
Yes please. They were minor feedback, so if you can resolve them, that would be great and I don't expect those to cause new failures. |
Added them now. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…ghm with operating in virtual. This is a backport of microsoft/microsoft-ui-xaml#3393 into Uno
…ghm with operating in virtual. This is a backport of microsoft/microsoft-ui-xaml#3393 into Uno
…ghm with operating in virtual. This is a backport of microsoft/microsoft-ui-xaml#3393 into Uno
…ghm with operating in virtual. This is a backport of microsoft/microsoft-ui-xaml#3393 into Uno
Description
The issue was that the Generate(Backward) logic was faulty. When trying to generate the previous line, the next item was placed entirely to the right, however when having multiple items per row, this is not correct. That's why the UniformGridLayout ended up with single column content when scrolling up. The updated behavior is to take the last extent into account to place the last item of the previous row.
Motivation and Context
Closes #1887
How Has This Been Tested?
Add new interaction test.
Screenshots (if appropriate):